package org.ch02.test09.demo03;

/**
 * Java对象 - 注意：此Java对象并不存在setter/getter方法
 * @author CSY
 * @date 2025 - 03 - 24
 */
public class Person {
    // 1.字段
    private String name;
    private int age;

    public Person(){}

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
